<?php
class Zend_Controller_Action_Helper_Search extends Zend_Controller_Action_Helper_Abstract{
	
	public function getPopSearch($view){
		
		$myCache=Zend_Registry::get('myCache');
		
		if(!$result=$myCache->load('popSearchArray')){
		
			$productSearch=new CProductSearch();
    	
    		$popSearchArray=$productSearch->getPopSearch();
    	
    		$view->assign('popSearchArray',$popSearchArray);
    	
			/*缓存*/
	    	$myCache->save($popSearchArray,'popSearchArray');
		    /*缓存*/
    	
		}else{
			
			$view->assign('popSearchArray',$result);
			
		}
		
	}
	
}
